home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Loadstar 51
/
051.d81
/
mailing labels
(
.txt
)
< prev
next >
Wrap
Commodore BASIC
|
2022-08-26
|
13KB
|
445 lines
1 forx=0to15:poke53248+x,.:next
10 poke53281,.:poke53280,.:ifa<>0 then 40
20 print"[147][208]lease wait while loading...."
30 if a=0thena=1:load"get'n store.o",8,1
40 dim cc$(100,6),dc$(17),in$(8):goto3390
50 pw$="[147][208]lease [215]ait."
60 ifzz$="n"orzz$="[206]"then110
70 goto2810
80 gety$:ify$=""then80
90 ify$<>"y"andy$<>"[217]"andy$<>"n"andy$<>"[206]"then80
100 return
110 open8,8,8,"0:cc$,seq,r"
120 input#8,n:if n=0then170
130 fori=1ton
140 forj=1to6
150 input#8,cc$(i,j)
160 nextj:nexti
170 close8
180 rem------disk error check-----------
190 open15,8,15
200 input#15,en,em$,et,es
210 ifen<>0thenprinten,em$,et,es:
220 close15
230 rem------main menu------------------
240 b=100:print"[147][158]":sp$="[182] [146][181]":restore:x=0:y=0:gosub2500
250 gosub4370
260 printspc(18)chr$(14)""n:printspc(12)" [205]ailing [204]abels ":ch=0
270 printspc(13)"[163][163][163][163][163][163][163][163][163][163][163][163][163][163]":printspc(11)"[172][185][185][185][185][185][185][185][185][185][185][185][185][185][185][185][185][187]"
280 printspc(11)sp$
290 printspc(11)"[182][214]iew [193]ll [204]abels [146][181]":printspc(11)sp$
300 printspc(11)"[182] [206]ew [193]dditions [146][181]":printspc(11)sp$
310 printspc(11)"[182] [208]rint [204]ist [146][181]":printspc(11)sp$
320 printspc(11)"[182][211]cratch a [204]abel [146][181]":printspc(11)sp$
330 printspc(11)"[182] [211]earch for ? [146][181]":printspc(11)sp$
340 printspc(11)"[182] [209]uit [146][181]":printspc(11)sp$
350 printspc(11)"[188][183][183][183][183][183][183][183][183][183][183][183][183][183][183][183][183][190]":
360 print"[158][197]nter your selection with the [195][210][211][210] keys ";
370 print"[207]nce selected, press [210][197][212][213][210][206] to continue"
380 gosub4410
390 get ch$:if ch$=""then390
400 ifch$="[145]"andb=84+16 thenb=196
410 ifch$=""andb=180thenb=84
420 ifch$=""thenb=b+16:pokev+1,b:pokev+3,b:pokev+5,b
430 ifch$="[145]"thenb=b-16:pokev+1,b:pokev+3,b:pokev+5,b
440 ifch$=chr$(13)thengosub2480:goto460
450 goto390
460 pokev+1,.:pokev+3,.:pokev+5,.
470 ifb=100then540
480 ifb=116then850
490 ifb=132then1670
500 ifb=148then720
510 ifb=164then1100
520 ifb=180then1840
530 rem-------view all cards-----------
540 print"[147]"spc(17)chr$(14)""n:pokev+21,0:gosub2500
550 printspc(12)"[214]iew all [204]abels"
560 printspc(12)"[163][163][163][163][163][163][163][163][163][163][163][163][163][163][163]":gosub2140
570 if n=0 then240
580 fori=1ton:ifi<1theni=1
590 gosub2080
600 gosub4310
610 gety$:ify$=""then610
620 ify$<>"e"andy$<>"p"andy$<>"m"andy$<>"-"andy$<>"+"then610
630 ify$="e"thengosub2480:gh=i:gosub2310:gosub1320:i=i-1
640 ify$="p"thengosub2480:gosub2310:gosub1950:gosub2300:i=i-1
650 ify$="m"thengosub2480:goto240
660 ify$="-"thengosub2480:i=i-2
670 ify$="+"thengosub2480
680 ifi=nthengosub3780:goto240
690 gosub2320
700 nexti
710 rem------scratch a card------------
720 pokev+21,0:print"[147]"chr$(14)spc(12)"[211]cratch a label":gosub2140:gosub2500
730 print"[197]nter [204]ast [206]ame":gosub3860:gosub3340:iftu=1then750
740 print"":gosub2750:goto240
750 o=i:tu=0
760 fori=oton:gosub2080:gosub4330
770 gety$:ify$=""then770
780 ify$<>"s"andy$<>"t"andy$<>"m"then770
790 ify$="s"thengosub2480:goto820
800 ify$="t"thengosub2480:goto720
810 ify$="m"thengosub2480:restore:goto240
820 cc$(i,1)=chr$(255)
830 gosub2520:n=n-1:gosub2660:goto240
840 rem-------new additions-----------
850 n=n+1:i=n:pokev+21,0:print"[147]":printspc(13)"[206]ew [193]dditions":gosub2500
860 printspc(12)"[163][163][163][163][163][163][163][163][163][163][163][163][163][163][163]":gosub2140
870 printchr$(14)"[197]nter [204]ast [206]ame":gosub3860:cc$(i,1)=lo$
880 print"":lo$=""
890 x=7:y=13:gosub4420:print""cc$(i,1)
900 gosub2300
910 print"[197]nter [198]irst[206]ame":gosub3900:cc$(i,2)=bl$:bl$=""
920 print""
930 x=7:y=13:gosub4420:print""cc$(i,2)" "cc$(i,1)
940 gosub2300
950 print"[197]nter [200]ouse [193]ddress":gosub3950:cc$(i,3)=bl$:bl$=""
960 print""
970 x=7:y=14:gosub4420:print""cc$(i,3):gosub2300
980 print"[197]nter [195]ity and [211]tate ":gosub4000:print""
990 x=7:y=15:gosub4420:print""cc$(i,4)", "cc$(i,5):gosub2300
1000 print"[197]nter [218]ip [195]ode":gosub4100:print""
1010 x=7:y=16:gosub4420:print" "cc$(i,6):gosub2300
1020 x=2:y=22:gosub4420:print"[210]e-enter / [193]dd another / [211]ave / [197]xit"
1030 getyc$:if yc$=""then1030
1040 ifyc$="r"oryc$="[210]"thengosub2480:gosub2310:goto860
1050 ifyc$="[197]"oryc$="e"thenn=n-1:goto240
1060 ifyc$="a"oryc$="[193]"thenprintpl$:gosub2480:gosub2520:gosub2660:goto850
1070 ifyc$="s"oryc$="[211]"thengosub2480:gosub2520:gosub2660:goto240
1080 goto1030
1090 rem------search for----------------
1100 pokev+21,0:print"[147]"chr$(14)spc(12)"[211]earching for ?":gosub2140:gosub2500
1110 print""spc(11)"[163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163]"
1120 print"[197]nter [204]ast [206]ame ":gosub3860:gosub3340:iftu=1then1140
1130 print"":gosub2750:goto240
1140 o=i:tu=0
1150 fori=oton:ifi<1theni=1
1160 gosub2080:gosub4310
1170 gety$:ify$=""then1170
1180 ify$<>"e"andy$<>"p"andy$<>"m"andy$<>"-"andy$<>"+"then1170
1190 ify$="e"thengosub2480:gh=i:gosub2310:gosub1320:i=i-1
1200 ify$="p"thengosub2480:gosub2310:gosub1950:gosub2300:i=i-1
1210 ify$="m"thengosub2480:goto240
1220 ify$="-"thengosub2480:i=i-2
1230 ify$="+"thengosub2480
1240 ifi=nthengosub3780:goto240
1250 gosub2320
1260 nexti
1270 getyc$:if yc$=""then1270
1280 if yc$="y"then1100
1290 ifyc$="n"then240
1300 ifyc$<>"y"andyc$<>"n"then1270
1310 rem------corrections----search-----
1320 gosub2360:print""spc(14)chr$(14)"[197]dit a [204]abel":gosub2500
1330 printspc(13)"[163][163][163][163][163][163][163][163][163][163][163][163][163][163]":print""cc$(i,1):gosub2790
1340 gosub80
1350 ify$="n"ory$="[206]"thengosub2430:goto1370
1360 gosub2300:gosub2370:gosub2430:gosub3860:cc$(i,1)=lo$
1370 lo$="":ln=len(cc$(i,1)):ifln>27then1340
1380 x=7:y=13:gosub4420:print""cc$(i,1)
1390 gosub2300:print""cc$(i,2):gosub2790
1400 gosub80
1410 ify$="n"ory$="[206]"thengosub2430:goto1430
1420 gosub2300:gosub2380:gosub2430:gosub3900:bl$=""
1430 x=7:y=13:gosub4420:print""cc$(i,2)" "cc$(i,1)
1440 gosub2300:print""cc$(i,3):gosub2790
1450 gosub80
1460 ify$="n"ory$="[206]"thengosub2440:goto1480
1470 gosub2300:gosub2390:gosub2440:gosub3950:bl$=""
1480 x=7:y=14:gosub4420:print""cc$(i,3)
1490 gosub2300:print""cc$(i,4):gosub2790
1500 gosub80
1510 ify$="n"ory$="[206]"thengosub2450:goto1530
1520 gosub2300:gosub2400:gosub2450:gosub4150
1530 x=7:y=15:gosub4420:print""cc$(i,4)
1540 gosub2300:print""cc$(i,5):gosub2790
1550 gosub80
1560 ify$="n"ory$="[206]"thengosub2450:goto1580
1570 gosub2300:gosub2410:gosub2450:gosub4200
1580 x=7:y=15:gosub4420:print""cc$(i,4)", "cc$(i,5)
1590 gosub2300:print""cc$(i,6):gosub2790
1600 gosub80
1610 ify$="n"ory$="[206]"thengosub2460:goto1630
1620 gosub2300:gosub2420:gosub2460:gosub4100
1630 x=20:y=16:gosub4420:print""cc$(i,6)
1640 gosub2300:gosub2320:gosub2080:gosub2520:gosub2660:i=gh
1650 return
1660 rem------print routine-------------
1670 print"[147]"spc(12)chr$(14)"[208]rint all [204]abels":pokev+21,0:gosub2500
1680 printspc(12)"[163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163]"
1690 gosub4350
1700 gety$:ify$=""then1700
1710 ify$<>"c"andy$<>"m"then1700
1720 ify$="c"thengosub2310:gosub4360:goto1740
1730 ify$="m"then240
1740 open16,4,15:close16:ifst<>0 then gosub 10000 :goto 1820
1749 open4,4,0
1750 fori=1ton
1760 print#4,chr$(13)
1770 print#4,chr$(17); cc$(i,2)" "cc$(i,1)
1780 print#4,chr$(17); cc$(i,3)
1790 print#4,chr$(17); cc$(i,4)", "cc$(i,5)
1800 print#4,spc(15)cc$(i,6)
1810 nexti
1820 close4
1830 goto240
1840 print"[153][209]uit to [204][207][193][196][211][212][193][210] : [193]re you sure ? ([217]/[206]) ";
1850 print" ";
1860 geta$:ifa$<>"y"an